<?php
  include_once("./libraries/util.inc.php");
  include_once("./libraries/authentication.inc.php");

  session_start();
  sessionAuthenticate("login.php");  

  printHeader("Find Jobs that are Part of a DAG");
  cdbBody();
  cdbSetUp();
?>

<!-- ***** BODY GOES FROM HERE UNTIL NEXT COMMENT WITH *'S ***** -->
<font size=+3>
<p><b><center>Find Jobs that are Part of a DAG</center></b></p>
</font>

<form action="provDAGByFile.php" method="get">
  <p><b>Search for a DAG by submit file name:</b> Find DAGs based on 
    the name of the submit file. A partial name is adequate.</p>
  <table>
    <tr>
      <td>File Name:</td><td><input type="text" name="fileName" /></td>
    </tr>
    <tr>
      <td></td>
      <td align="center"><input type="submit" value="Find DAGs"></td>
    </tr>
  </table>
</form>

<p><b>OR:</b></p>

<form action="provDAGByDate.php" method="get">
  <p><b>Search for a DAG by date:</b> Enter the start and end dates
    for the date range to search for the DAG.</p>
  <table>
    <tr>
      <td>Start Date (yyyy-mm-dd):</td>
      <td><input type="text" name="startDate" /></td>
    </tr>
    <tr>
      <td>End Date (yyyy-mm-dd):</td>
      <td><input type="text" name="endDate" /></td>
    </tr>
    <tr>
      <td></td>
      <td align="center"><input type="submit" value="Find DAGs"></td>
    </tr>
  </table>
</form>


<p><b>OR:</b></p>

<form action="provDAGJobsAction.php" method="get">
  <table>
    <tr>
      <td><b>Enter a DAGMan Job Id:</b></td>
      <td><input type="text" name="DAGManJobId" /></td>
    </tr>
    <tr>
      <td></td>
      <td align="center"><input type="submit" value="Find Jobs"></td>
    </tr>
  </table>
  <p>&nbsp;</p>
</form>

<p>Back to the <a href="./provenance.php">Provenance</a> home page</p>

<!-- ***** END OF BODY ***** -->
<?php
  cdbFinishPage();
?>
